public class Numbers
{
   /**
      Counts the number of perfect squares in a given range
      @param a the lower bound of the range
      @param b the upper bound of the range
      @return the number of perfect squares in the range [a,b] (including the bounds)
   */
   public int countPerfectSquares(int a, int b)
   {
      // your work here
      int count = 0;
      for(int i = a;i <= b;i++){
         if(Math.sqrt(i)%1 == 0){
            count++;
         }
      }
      return count;
   }
}